
/* Layout */
import Layout from '@/layout'


export const constantRoutes = [
  {
    path: '/login',
    component: () => import('@/views/login/index'),
    hidden: true
  },

  {
    path: '/404',
    component: () => import('@/views/404'),
    hidden: true
  },

  {
    path: '/',
    component: Layout,
    redirect: '/dashboard',
    children: [{
      path: 'dashboard',
      name: 'Dashboard',
      component: () => import('@/views/dashboard/index'),
      meta: { title: 'Dashboard', icon: 'dashboard' }
    }]
  },
  {
      path:'/acl',
      component:Layout,
      redirect:'/acl/user',
      name:'Acl',
      meta: { title: '权限管理', icon: 'el-icon-lock' },
      children:[
        {
            path:'user/list',
            name:'User',
            component:()=>import('@/views/acl/user/list'),
            meta:{title:'用户管理'}
        },
        {
            path:'role/list',
            name:'Role',
            component:()=>import('@/views/acl/role/list'),
            meta:{title:'角色管理'}
        },
        {
            path:'permission/list',
            name:'Permission',
            component:()=>import('@/views/acl/permission/list'),
            meta:{title:'菜单管理'},
        }
      ]
  },
 
 

  // 404 page must be placed at the end !!!
  { path: '*', redirect: '/404', hidden: true }
]